package com.pt25.base.util;

import org.apache.commons.collections4.MapUtils;

import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.Map;

public class MapUtil {
    public static <T, K> Boolean isEmpty(Map<T, K> map) {
        return MapUtils.isEmpty(map);
    }

    public static <T, K> Boolean isNotEmpty(Map<T, K> map) {
        return MapUtils.isNotEmpty(map);
    }

    public static <T, K> Map<T,K> emptyHashMap(){
        return new HashMap<>();
    }
    public static <T, K> Map<T,K> emptyLinkedHashMap(){
        return new LinkedHashMap<>();
    }
}
